package cc.autoapi.pucong.auto.flow.core.root.selfenum;

/**
 * 删除枚举类
 *
 * @author chenjinkun
 * @url https://gitee.com/pucong
 * @create 2020-06-10
 */
public enum IsDelEnum implements CommonEnum<Integer> {
    未删除(0, "未删除"),
    已删除(1, "已删除");

    private Integer key;

    private String desc;

    IsDelEnum(Integer key, String desc) {
        this.key = key;
        this.desc = desc;
    }

    @Override
    public Integer getValue() {
        return this.key;
    }

    @Override
    public String getName() {
        return this.name();
    }
}